package com.itzh.netty.dubborpc.customer;

import com.itzh.netty.dubborpc.netty.NettyClient;
import com.itzh.netty.dubborpc.publicinterface.HelloServer;

public class ClientBootstrap {
    public static final  String providerName="Hello#";
    public static void main(String[] args) {
        NettyClient customer = new NettyClient();
        //创建代理对象
        HelloServer server = (HelloServer) customer.getBean(HelloServer.class, providerName);
        String res = server.hello("你好，dubbo");
        System.out.println("调用的结果="+res);
    }
}
